<?php
/**
 * Created by PhpStorm.
 * User: yangjiaming
 * Date: 2018/2/5
 * Time: 15:33
 */

namespace Halo\Data;


abstract class DAOAdapter
{
    abstract public function table();
    abstract public function redis();
    abstract public function database();
    public function defaultParamValues()
    {
        return array();
    }
    public function autoCreateTimestamp()
    {
        return 'create_time';
    }

    public function autoUpdateTimestamp()
    {
        return 'update_time';
    }
    public function primaryIdParamName()
    {
        return 'id';
    }
    public function wrapItemResult(&$result)
    {

        return $result;
    }
    public function softDeleted()
    {
        return '';
    }
}